package com.zc.cityman.service.impl;

import com.zc.cityman.mapper.UserMapper;
import com.zc.cityman.pojo.Citizen;
import com.zc.cityman.pojo.User;
import com.zc.cityman.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class UserServiceimpl implements IUserService {
    @Resource
    UserMapper userMapper;
    @Override
    public User login(String account,String password) {
        User login = userMapper.login(account,password);
        System.out.println(login);

        return login;
    }

    @Override
    public Integer regist(User user) {
        Integer regist = userMapper.regist(user);

        return regist;
    }

    @Override
    public User search(String account) {
        User search = userMapper.search(account);
        return search;
    }




}
